
package dieci.hibernate;

import dieci.system.RawMaterialStock;



/**
 *
 * @author DuckSys
 */
public class HibRawMaterialStock {

    private long rawMaterialId;
    private double totalAmount;

    public HibRawMaterialStock()
    {
    }

    public HibRawMaterialStock(RawMaterialStock rawMaterialStock)
    {
        this.rawMaterialId = rawMaterialStock.getRawMaterial().getRawMaterialId();
        this.totalAmount = rawMaterialStock.getTotalAmount();
    }
    
    /**
     * Get the value of totalAmount
     *
     * @return the value of totalAmount
     */
    public double getTotalAmount()
    {
        return totalAmount;
    }

    /**
     * Set the value of totalAmount
     *
     * @param totalAmount new value of totalAmount
     */
    public void setTotalAmount(double totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public long getRawMaterialId() 
    {
        return rawMaterialId;
    }

    public void setRawMaterialId(long rawMaterialId) 
    {
        this.rawMaterialId = rawMaterialId;
    }
    
}
